/**
 * Copyright (c) 2011-2016, James Zhan 詹波 (jfinal@126.com).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.candy.db.generator.core;

import java.util.ArrayList;
import java.util.List;

/**
 * TableMeta
 */
public class TableMeta {
	
	public String name = "";					// 表名
	public String remarks  = "";				// 表备注
	public String primaryKey  = "";			// 主键，复合主键以逗号分隔
	public List<ColumnMeta> columnMetas = new ArrayList<ColumnMeta>();	// 字段 meta
	
	// ---------
	
	public String baseModelName  = "";		// 生成的 base model 名
	public String baseModelContent  = "";		// 生成的 base model 内容

	public String modelName  = "";			// 生成的 model 名
	public String modelContent  = "";			// 生成的 model 内容
    public String modePackageName  = "";      //生的的model 的包名

	// ---------
	
	public int colNameMaxLen = "Field".length();			// 字段名最大宽度，用于辅助生成字典文件样式
	public int colTypeMaxLen = "Type".length();				// 字段类型最大宽度，用于辅助生成字典文件样式
	public int colDefaultValueMaxLen = "Default".length();	// 字段默认值最大宽度，用于辅助生成字典文件样式


    //作者
    private String author;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
    }

    public List<ColumnMeta> getColumnMetas() {
        return columnMetas;
    }

    public void setColumnMetas(List<ColumnMeta> columnMetas) {
        this.columnMetas = columnMetas;
    }

    public String getBaseModelName() {
        return baseModelName;
    }

    public void setBaseModelName(String baseModelName) {
        this.baseModelName = baseModelName;
    }

    public String getBaseModelContent() {
        return baseModelContent;
    }

    public void setBaseModelContent(String baseModelContent) {
        this.baseModelContent = baseModelContent;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getModelContent() {
        return modelContent;
    }

    public void setModelContent(String modelContent) {
        this.modelContent = modelContent;
    }

    public String getModePackageName() {
        return modePackageName;
    }

    public void setModePackageName(String modePackageName) {
        this.modePackageName = modePackageName;
    }

    public int getColNameMaxLen() {
        return colNameMaxLen;
    }

    public void setColNameMaxLen(int colNameMaxLen) {
        this.colNameMaxLen = colNameMaxLen;
    }

    public int getColTypeMaxLen() {
        return colTypeMaxLen;
    }

    public void setColTypeMaxLen(int colTypeMaxLen) {
        this.colTypeMaxLen = colTypeMaxLen;
    }

    public int getColDefaultValueMaxLen() {
        return colDefaultValueMaxLen;
    }

    public void setColDefaultValueMaxLen(int colDefaultValueMaxLen) {
        this.colDefaultValueMaxLen = colDefaultValueMaxLen;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}




